//
// Created by leoking870 on 2017/11/3.
// Copyright (c) 2017 leoking870. All rights reserved.
//

#import <Foundation/Foundation.h>

@class YKTurnOverUserModel;
@class YKTurnOverUserTaskModel;


@interface WorkFlowManager : NSObject
+ (void)getNextAssigneeWithBusinessID:(NSString *)businessID
                           completion:(void(^)(NSArray<YKTurnOverUserModel *> *nextAssignees, YKTurnOverUserTaskModel *nextTask, NSError *error))completion;


+ (void)getPreTaskWithBusinessID:(NSString *)businessID
                      completion:(void(^)(NSArray<YKTurnOverUserModel *> *nextAssignees,NSError *error))completion;


+ (void)completeWorkFlowWithBusinessID:(NSString *)businessID
                                  mark:(NSString *)mark
                        nextAssigneeID:(NSString*)nextId
                            completion:(void (^)(NSError *error))completion;


+ (void)submitToApproveWithBusinessID:(NSString *)businessID fromViewController:(UIViewController *)vc;

+ (void)repositionApproveWithBusinessID:(NSString *)businessID
                     fromViewController:(UIViewController *)viewController
                             completion:(void(^)(BOOL succcess))completion;

@end